# Maintainer: Ryan Barnett <ryanbarnett3@gmail.com>
pkgname=opkg-utils
pkgver=0.4.5
pkgrel=0
pkgdesc="Helper scripts for use with the opkg package manager"
url="https://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/"
arch="noarch"
license="GPL-2.0-or-later"
depends="bash
	binutils
	bzip2
	coreutils
	diffutils
	findutils
	grep
	gzip
	lz4
	python3
	sed
	tar
	xz
	"
makedepends="perl"
subpackages="$pkgname-doc"
source="https://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/snapshot/opkg-utils-$pkgver.tar.gz"
options="!check" # no test suite

package() {
	# There are no build commands as all files are either shell scripts
	# or python scripts
	make PREFIX=/usr DESTDIR="$pkgdir" install-utils
	# Makefile installs docs under (PREFIX)/man. Change the prefix
	# to preferred location for man pages under /usr/share
	make PREFIX=/usr/share DESTDIR="$pkgdir" install-docs
}

sha512sums="819377e8f417d6abac4a74ad3612ca22de68b3f785d0ef912e60f174132335683080936bb20a1dba44d9d717b2cf9c442a9a774ba0a1297504eb695e6dd64df6  opkg-utils-0.4.5.tar.gz"
